package com.shop.cereshop.app.tencent.im.model.transfer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 转账领取记录表
 */
@ApiModel(description="转账领取记录表")
@Entity
@TableName("cere_transfer_receive_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TransferReceiveRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="自增ID")
    @Id
    @TableId(value = "transfer_id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value="转账单号")
    private String transferId;

    @ApiModelProperty(value="领取人ID")
    private String receiverId;

    @ApiModelProperty(value="实际领取金额")
    private BigDecimal amount;

    @ApiModelProperty(value="领取时的IP地址")
    private String receiveIp;

    @ApiModelProperty(value="领取设备信息（User-Agent或设备型号）")
    private String receiveDevice;

    @ApiModelProperty(value="领取时间")
    private LocalDateTime receiveTime;

}